import { defineStore } from "pinia";

export const messageStore = defineStore("message", {
    state: () => ({
        itemObj: {},
        msgList: {
            itemMsgList: [],
            userMsgList: [],
        },
        //到底是按了卖家还是买家，按买家的时候，传自己的店铺item_id过去
        sellerOrbuyer: null,
    }),
    getters: {},
    actions: {},
    persist: true,
});